﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

using UnityEngine.SceneManagement;

namespace linkouqs.Gamekit
{

    public class DeathZone : MonoBehaviour
    {
        void OnTriggerEnter2D(Collider2D collision)
        {
            CharacterController2D characterController2D;

            if (CharacterManager.Instance.TryGetCharacter(collision, out characterController2D))
            {
                //characterController2D.OnDeath();
                SceneManager.LoadScene(SceneManager.GetActiveScene().name);
            }

        }

    }
}